package com.example.demo.socket;

import java.net.ServerSocket;
import java.net.Socket;

public class TCPServer {
    public static void main(String[] args){
        try{
            ServerSocket socket = new ServerSocket(65000);

            while (true){
                Socket ss = socket.accept();

                TCPServerThread thread = new TCPServerThread(ss);
                thread.start();
            }

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
